/*******************************************************************************
*  file    : genpanel.cpp
*  created : 13.04.2012
*  author  : Slyshyk Oleksiy (alex312@meta.ua)
*******************************************************************************/

#include "genpanel.hpp"
#include <QComboBox>
#include <QGroupBox>
#include <QStackedWidget>
#include <QLabel>
#include <QBoxLayout>

TGenPanel::TGenPanel(QWidget *parent) :
    QWidget(parent)
{
    QLabel * lbl = new QLabel(this);
    lbl->setText(QString(tr("Функция:")));
    m_funcCombo = new QComboBox(this);
    m_funcParamsGroup = new QGroupBox(QString(tr("Параметры генерации")), this);
    m_stacked = new QStackedWidget(m_funcParamsGroup);

    QVBoxLayout * groupLay = new QVBoxLayout();
    groupLay->addWidget(m_stacked);
    m_funcParamsGroup->setLayout(groupLay);

    QVBoxLayout * comboLay = new QVBoxLayout();
    comboLay->addWidget(lbl);
    comboLay->addWidget(m_funcCombo);

    QVBoxLayout * mainLay = new QVBoxLayout();
    mainLay->addLayout(comboLay);
    mainLay->addWidget(m_funcParamsGroup);

    this->setLayout(mainLay);
}

void TGenPanel::fillFuncCombo()
{
}

#include "moc_genpanel.cpp"
